export default class Singleton {
  private static _instance = null;

  static getInstance<T>() {
    if (!this._instance) {
      this._instance = new this();
    }

    return this._instance as T;
  }
}
